<?php $this->pageTitle=Yii::app()->name . ' - '.Yii::t("UserModule.user", "找回密码");
$this->breadcrumbs=array(
	Yii::t("UserModule.user", "Login") => array('/user/user/login'),
	Yii::t("UserModule.user", "Restore"),
);
?>

<b> <?php echo Yii::t("UserModule.user", "当前操作: 找回密码"); ?> </b>
<span class="note"> <?php	echo Yii::t("UserModule.user", 'Whole Required'); ?></span>

<?php if(Yii::app()->user->hasFlash('recoveryMessage')): ?>
  <div class="success">
  <?php echo Yii::app()->user->getFlash('recoveryMessage'); ?>
  </div>
<?php else: ?>

  <div class="form form-left">
    <?php echo CHtml::beginForm(); ?>
      <?php echo CHtml::errorSummary($form); ?>
      <div class="row">
        <?php echo CHtml::activeTextField($form,'login_or_email') ?>
        <p class="hint"><?php echo Yii::t("UserModule.user","请输入您的登录用户名或者邮箱."); ?></p>
      </div>
      <div class="row submit">
        <?php echo CHtml::submitButton(Yii::t("UserModule.user", "Restore")); ?>
      </div>
    <?php echo CHtml::endForm(); ?>
  </div><!-- form -->
<?php endif; ?>

<!--Right-->
<div class="form-right">
  <p>
    <b>如果您还不是会员?</b>
    <br/>
    <span style="line-height:26px;">
      &crarr; <?php echo CHtml::link(Yii::t("UserModule.user", "点此注册"), $this->module->registrationUrl)?>
    </span>
  </p>
  <p>
    <b>如果您已经是会员?</b>
    <br/>
    <span style="line-height:26px;">
      &crarr; <?php echo CHtml::link(Yii::t("UserModule.user", "点此登录"), $this->module->loginUrl)?>
    </span>
  </p>
</div>
<!--End Right-->
